<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import = "com.db4o.ext.ExtObjectContainer" %>
<%@page import = "com.db4o.servlet.Db4oServlet" %>
<%@page import = "facades.*" %>
<%@page import = "auser.*" %>
<%@page import = "java.util.*" %>
<%  Db4oCareTaker db4oct = new Db4oCareTaker(session,"padova"); %>
<%  

	com.db4o.ObjectContainer co = db4oct.getContainer();
	
	com.db4o.query.Query qu = co.query();
	qu.constrain(Counters.class);

	qu.descend("className").constrain(ScritturaDiPrimaNota.class.getName()).like();
	qu.descend("anno").constrain(2007).equal();
	qu.descend("circolo").constrain(new Circolo("test"));

	List q =  qu.execute();
	
	for(int i = 0 ; i<q.size();i++) {
	 	Counters u = (Counters) q.get(i);
		if(u!=null)out.println("|"+u.getClassName()+"|"); 
		if(u!=null)out.println("|"+u.getAnno()+"|<br>"); 
	};
%>
<%=new Date() %><br>  
<%=q.size() %><br>  
